from celery import shared_task


@shared_task
def add(x, y):
    return x + y


@shared_task
def mul(x, y):
    return x * y


@shared_task
def MyCeleryTest(*args, **kwargs):
    """测试任务"""
    print("test")
    return {"rescode": 200, "resmsg": "ok"}


# res=tasks.add.delay(1,3)
# {'task_id':res.task_id}
